<?php
/**
 * Created by PhpStorm.
 * User: User
 * Date: 2017/10/9
 * Time: 19:14
 */
 class  Shape{
       public  function getArea(){}
       public  static  function  setPi(){
           return 3.14;
       }
}
echo  Shape::setPi();
class Rectangle extends Shape
{
      private  $instance;
      private  $width,$height;

    private  function  __construct()
    {
      //  $this->height=$height;
       // $this->width=$width;

    }

    public  function  getObj(){
        return new Rectangle();
    }
   public function getArea()
    {
         return  $this->width*$this->height;
       // parent::getArea(); // TODO: Change the autogenerated stub
    }
}

class  Rect extends  Rectangle{

}

//$c=new Rectangle(3,4);

//print $c->getArea();


$a=Rectangle::

